package com.my.dubbo.consumer.annotation;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.my.dubbo.provider.annotation.ProviderServiceAnnotation;

/**
 * 注解方式的service
 */
@Component("consumerAnnotationService")
public class ConsumerAnnotationService {
	
	@Reference
	private ProviderServiceAnnotation providerServiceAnnotation;
	
	public String sayHello(String word) {
		return providerServiceAnnotation.sayHelloAnnotation(word);
	}
}
